public class Account {

	private long accountId;
	private long custId;
	private double amount;
	private double credit;
	private double commission;
	private String comments;
	private static int count = 1;

	public Account() {
		// empty constructor
	}

	public Account(long initAccountId, long initCustId, double initAmount, long initCredit, double commission, String comments) {

		setAccountId(initAccountId);
		setCustId(initCustId);
		setAmount(initAmount);
		setCredit(initCredit);
		setCommission(commission);
		setComments(comments);
	}

	public double getCommission() {
		return commission;
	}

	public void setCommission(double commission) {
		this.commission = commission;
	}

	public long getAccountId() {
		return accountId;
	}

	public void setAccountId(long currAccountId) {
		accountId = currAccountId;
	}

	public long getCustId() {
		return custId;
	}

	public void setCustId(long currCustId) {
		custId = currCustId;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getCredit() {
		return credit;
	}

	public double getAllowedWithdraw() {
		return credit + amount;
	}

	public void setCredit(double credit) {
		this.credit = credit;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;

	}

	@Override
	public String toString() {

		return "Account (" + count++ + ") : Information. \n Account_ID : " + accountId + "\n Amount : " + amount + "\n Comments : " + comments + "\n Comission : " + commission + "\n Credit :" + credit + "\n Cust_ID :" + custId + "\n\n ************************************************\n";
	}

	public void PrintAccount() {
		// Print Account Information on the screen
		System.out.println("Print Account Information :");
		System.out.println("Account_ID : " + this.getAccountId());
		System.out.println("Cust_ID : " + this.getCustId());
		System.out.println("Amount : " + this.getAmount());
		System.out.println("Credit : " + this.getCredit());
		System.out.println("Comission : " + this.getCommission());
		System.out.println("Comments : " + this.getComments());

	}
}
